using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Geomatrix
{
    class Geom
    {
        public Vector2 position;
        Texture2D geomTex;

        public Geom(int x, int y, Texture2D geoTex)
        {
            position.X = x;
            position.Y = y;
            geomTex = geoTex;
        }

        public bool Press(Vector2 pressLoc, Vector2 playerLoc)
        {
            if ((pressLoc - playerLoc).Length() < 128)
                return true;
            return false;
        }

        public void Draw(SpriteBatch sb)
        {
            sb.Draw(geomTex, position, Color.White);
        }
    }
}